package pathfinders.dijkstra;

import java.util.ArrayList;

import pathfinders.sprites.*;

public class Vertex 
{
	public String name;
	public TileType tile;	//placeholder for tileType
	public ArrayList<String> adjacentVertices;
	public int[] adjacentDistances;
	public boolean known;
	public int dist;
	public Vertex path;
	
	public Vertex(String name, int numAdjacencies, int x, int y)
	{
		this.name = name;
		adjacentVertices = new ArrayList<String>();
		adjacentDistances = new int[numAdjacencies];
		tile = new GrassTile(x,y);	//default grass tile

	}
	
	public void printAdjacencyList()
	
	{
		System.out.println("vertex: "+name);
		for(int i =0;i<adjacentVertices.size();i++)
		{
			System.out.println("\t adjacent to "+adjacentVertices.get(i)+" at distance of: "+adjacentDistances[i]);
		}
	}
	
	

	
}